<template>
  <view class="profile-bg">
    <view class="avatar-section">
      <view class="avatar-wrapper">
        <uni-icons type="person-filled" size="80" color="#fff" class="avatar-icon" />
      </view>
      <text class="nickname">欢迎您</text>
    </view>
    <view class="info-card">
      <view class="info-item clickable" @click="goToPrivacy">
        <text class="item-label">隐私政策</text>
        <uni-icons type="arrow-right" size="22" color="#bbb" />
      </view>
      <view class="divider">
        <uni-icons type="more" size="18" color="#f0f0f0" />
      </view>
      <view class="info-item">
        <text class="item-label">版本号</text>
        <text class="item-value">1.0.0</text>
      </view>
    </view>
  </view>
</template>

<script>
import uniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
export default {
  components: {
    uniIcons
  },
  methods: {
    goToPrivacy() {
      uni.navigateTo({
        url: '/pages/index3'
      })
    }
  }
}
</script>

<style lang="scss">
@import '@/uni.scss';
.profile-bg {
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}
.avatar-section {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80rpx;
  padding-bottom: 40rpx;
  background: transparent;
}
.avatar-wrapper {
  width: 140rpx;
  height: 140rpx;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff 0%, #7fbcff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8rpx 32rpx rgba(79,140,255,0.18);
  border: 4rpx solid #fff;
}
.avatar-icon {
  font-size: 90rpx !important;
}
.nickname {
  margin-top: 24rpx;
  font-size: 36rpx;
  color: #333;
  font-weight: 600;
  letter-spacing: 1rpx;
  text-shadow: 0 2rpx 8rpx rgba(127,188,255,0.08);
}
.info-card {
  width: 88vw;
  background: #fff;
  border-radius: 24rpx;
  box-shadow: 0 4rpx 24rpx rgba(127,188,255,0.10);
  padding: 0;
  margin-top: 24rpx;
  overflow: hidden;
}
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40rpx;
  height: 90rpx;
  font-size: 32rpx;
  color: $uni-text-color;
  background: #fff;
}
.info-item.clickable {
  cursor: pointer;
  color: $uni-color-primary;
  font-weight: 500;
}
.divider {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 1px;
  background: none;
}
.item-label {
  color: #333;
  font-size: 32rpx;
}
.item-value {
  color: #aaa;
  font-size: 28rpx;
}
</style>